textview: Delete selection when preedit starts
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 19:55:40 +0000 (14:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 20:18:30 +0000 (15:18 -0500)
commitd28df0b87e1422a0491970c1b0f9c9bcc5e7689c
tree764bd6f2b8b4065728ac50191a0e536038a77f07
parentd1fbfb9c4ed5ebf456f8bbcf16b6ba3a5e2e796a
textview: Delete selection when preedit starts

This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.

Fixes: #1123
gtk/gtktextview.c